import request from '@/utils/request'

// 查询用户令牌列表
export function listApkey(query) {
  return request({
    url: '/apkey/apkey/list',
    method: 'get',
    params: query
  })
}

// 查询用户令牌详细
export function getApkey(id) {
  return request({
    url: '/apkey/apkey/' + id,
    method: 'get'
  })
}

// 新增用户令牌
export function addApkey(data) {
  return request({
    url: '/apkey/apkey',
    method: 'post',
    data: data
  })
}

// 修改用户令牌
export function updateApkey(data) {
  return request({
    url: '/apkey/apkey',
    method: 'put',
    data: data
  })
}

// 删除用户令牌
export function delApkey(id) {
  return request({
    url: '/apkey/apkey/' + id,
    method: 'delete'
  })
}
